Skip to content

Gruvbox theme - #62

Merged
MiniCodeMonkey merged 4 commits into
MiniCodeMonkey:mainfrom
KLIM8D:gruvbox
Sep 28, 2026
Merged

MiniCodeMonkey merged 4 commits into
MiniCodeMonkey:mainfrom
KLIM8D:gruvbox

Conversation

@KLIM8D

@KLIM8D KLIM8D commented Apr 28, 2026

Copy link
Copy Markdown

Add theme key to .chief/config.yaml supporting catppuccin-mocha and gruvbox-dark, making it extensible for more themes later. Config is read at TUI startup before InitStyles(); Invalid theme names fall back to catppuccin-mocha with a warning to stderr.

@MiniCodeMonkey

Copy link
Copy Markdown
Owner

Thanks for the theme work, and sorry for the delay. Main moved CLI routing into Cobra commands, so I rebased and moved the theme loading from main.go into cmd/chief/commands/root.go. Without that, InitStyles() never ran. I also added WarningBgColor to the theme, because the interrupted-story warning had a hardcoded Catppuccin background. Both changes are pushed to your branch.

KLIM8D and others added 4 commits September 28, 2026 12:11
…-dark theme.

Add `theme` key to .chief/config.yaml supporting "catppuccin-mocha" and
"gruvbox-dark". Config is read at TUI startup before InitStyles(); invalid
theme names fall back to catppuccin-mocha with a warning to stderr.
The gruvbox theme commit set the active theme and called InitStyles()
in the pre-Cobra cmd/chief/main.go, which no longer runs any TUI logic
after the Cobra refactor. Move the config-driven theme resolution and
InitStyles() call into runTUI() in cmd/chief/commands/root.go so themes
still apply when the TUI starts.

Claude-Session: https://claude.ai/code/session_01Fxi8Py1Weyua51Y1RBt2NP
renderInterruptedWarning hardcoded a catppuccin-derived background
color (#3D3000) that stayed fixed regardless of the active theme,
clashing with gruvbox-dark's palette. Add WarningBgColor to Theme,
give it a value for both palettes, and use it instead of the literal.

Claude-Session: https://claude.ai/code/session_01Fxi8Py1Weyua51Y1RBt2NP
@MiniCodeMonkey
MiniCodeMonkey merged commit 492e574 into MiniCodeMonkey:main Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants